package com.td.core.messages;

import com.td.core.obj.Player;
import com.td.core.obj.TDGame;

public class MessageLogic {

	
	public static void addMessage(Player player, String text) {
	
		player.getMessages().add(new TDMessage(text));
		
	}
	
	public static void addMessageToAll(TDGame game, String text) {
		
		for(Player pl : game.getPlayers())
				addMessage(pl, text);
	}
}
